const parentCode = "operationManagement";
export default [
  {
    path: "/operationManagement",
    meta: {
      title: "运行管理",
      code: parentCode, //来确定是哪个模块，一级菜单的code
    },
    component: (resolve) => require(["@/views/operationManagement"], resolve),
    children: [
      {
        path: "/",
        redirect: "handoverManagement",
      },
      {
        path: "handoverManagement",
        meta: {
          title: "交接班管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "handoverManagement", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/operationManagement/handoverManagement"], resolve),
        children: [
          {
            path: "/",
            redirect: "handover",
          },
          {
            path: "handover",
            name: "handover",
            meta: {
              title: "交接班",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "handoverManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/handoverManagement/handover",
              ], resolve),
          },
          {
            path: "handoverRecord",
            name: "handoverRecord",
            meta: {
              title: "交接班记录",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "handoverManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/handoverManagement/handoverRecord",
              ], resolve),
          },
          {
            path: "onDutyRecord",
            name: "onDutyRecord",
            meta: {
              title: "值班记录",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "handoverManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/handoverManagement/onDutyRecord",
              ], resolve),
          },
        ],
      },
      {
        path: "runningSchedule",
        meta: {
          title: "运行排班",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "runningSchedule", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/operationManagement/runningSchedule"], resolve),
        children: [
          {
            path: "/",
            redirect: "schedulePlan",
          },
          {
            path: "schedulePlan",
            name: "schedulePlan",
            meta: {
              title: "排班方案",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runningSchedule", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runningSchedule/schedulePlan",
              ], resolve),
          },
          {
            path: "classPlan",
            name: "classPlan",
            meta: {
              title: "班别方案",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runningSchedule", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runningSchedule/classPlan",
              ], resolve),
          },
        ],
      },
      {
        path: "dispatchManagement",
        meta: {
          title: "调度管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "dispatchManagement", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/operationManagement/dispatchManagement"], resolve),
        children: [
          {
            path: "/",
            redirect: "statusSummary",
          },
          {
            path: "statusSummary",
            name: "statusSummary",
            meta: {
              title: "状态汇总",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "dispatchManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/dispatchManagement/statusSummary",
              ], resolve),
          },
          {
            path: "statusEntry",
            name: "statusEntry",
            meta: {
              title: "状态录入",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "dispatchManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/dispatchManagement/statusEntry",
              ], resolve),
          },
          {
            path: "basicInfoMaintenance",
            name: "basicInfoMaintenance",
            meta: {
              title: "基础信息维护",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "dispatchManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/dispatchManagement/basicInfoMaintenance",
              ], resolve),
          },
          {
            path: "accidentTripRecord",
            name: "accidentTripRecord",
            meta: {
              title: "事故跳闸记录",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "dispatchManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/dispatchManagement/accidentTripRecord",
              ], resolve),
          },
          {
            path: "unitStatusEvaluation",
            name: "unitStatusEvaluation",
            meta: {
              title: "机组状态评价",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "dispatchManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/dispatchManagement/unitStatusEvaluation",
              ], resolve),
          },
        ],
      },
      {
        path: "runLog",
        meta: {
          title: "运行日志",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "runLog", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/operationManagement/runLog"], resolve),
        children: [
          {
            path: "/",
            redirect: "shutdownOperation",
          },
          {
            path: "shutdownOperation",
            name: "shutdownOperation",
            meta: {
              title: "开停机操作",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runLog", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runLog/shutdownOperation",
              ], resolve),
          },
          {
            path: "shutdownLog",
            name: "shutdownLog",
            meta: {
              title: "开关机日志",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runLog", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runLog/shutdownLog",
              ], resolve),
          },
        ],
      },
      {
        path: "runStatistical",
        meta: {
          title: "运行统计",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "runStatistical", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/operationManagement/runStatistical"], resolve),
        children: [
          {
            path: "/",
            redirect: "summaryTable",
          },
          {
            path: "summaryTable",
            name: "summaryTable",
            meta: {
              title: "机组完好率概况表",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/summaryTable",
              ], resolve),
          },
          {
            path: "detailsTable",
            name: "detailsTable",
            meta: {
              title: "机组完好率详情表",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/detailsTable",
              ], resolve),
          },
          {
            path: "startupRate",
            name: "startupRate",
            meta: {
              title: "开机成功率",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/startupRate",
              ], resolve),
          },
          {
            path: "unitRunningStation",
            name: "unitRunningStation",
            meta: {
              title: "机组运行台时",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/unitRunningStation",
              ], resolve),
          },
          {
            path: "startupDetails",
            name: "startupDetails",
            meta: {
              title: "开机成功失败明细",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/startupDetails",
              ], resolve),
          },
          {
            path: "unitMaintenanceStation",
            name: "unitMaintenanceStation",
            meta: {
              title: "机组检修台时",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/unitMaintenanceStation",
              ], resolve),
          },
          {
            path: "unitStops",
            name: "unitStops",
            meta: {
              title: "机组非计停次数",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/unitStops",
              ], resolve),
          },
          {
            path: "unitFailures",
            name: "unitFailures",
            meta: {
              title: "机组故障停机次数",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/unitFailures",
              ], resolve),
          },
          {
            path: "accidentsJump",
            name: "accidentsJump",
            meta: {
              title: "机组事故跳机次数统计",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/accidentsJump",
              ], resolve),
          },
          {
            path: "lineStatistics",
            name: "lineStatistics",
            meta: {
              title: "线路KPI统计",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/lineStatistics",
              ], resolve),
          },
          {
            path: "energyStatistics",
            name: "energyStatistics",
            meta: {
              title: "能源单耗统计",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "runStatistical", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/operationManagement/runStatistical/energyStatistics",
              ], resolve),
          },
        ],
      },
    ],
  },
];
